package com.davies.learn.jbv.domain.enums;

import com.fasterxml.jackson.annotation.JsonValue;

import java.util.function.Supplier;

/**
 * @author davies
 * @date 2023/7/18 15:16
 */
public enum UserType implements Supplier<Integer> {

    S_VIP(0),


    VIP(1),

    NORMAL(2)
    ;

    @JsonValue
    private final int code;

    UserType(int code) {
        this.code = code;
    }

    @Override
    public Integer get() {
        return this.code;
    }
}
